import request from '@/utils/request';

export const login = (data) => {
  return request({
    url: '/shop/login/verifCodeLogin',
    method: 'POST',
    data,
  })
}
export const logout = (data) => {
  return request({
    url: '/shop/login/logout',
    method: 'POST',
    data,
  })
}
// 获取用户信息
export const getUserInfo = (data) => {
  return request({
    url: '/shop/backUser/getUserInfo',
    method: 'POST',
    data,
  })
}
// 编辑用户信息
export const editUser = (data) => {
  return request({
    url: '/shop/backUser/editUser',
    method: 'POST',
    data,
  })
}
// 用户
export const getUserList = (data) => {
  return request({
    url: '/shop/backUser/getUserList',
    method: 'POST',
    data,
  })
}
//获取菜单
export const getMenuList = (data) => {
  return request({
    url: '/shop/login/getMenuList',
    method: 'POST',
    data,
  })
}
// /营业执照验证
export const vaildBusinessLicense = (data) => {
  return request({
    url: '/shop/login/vaildBusinessLicense',
    method: 'POST',
    data,
  })
}
// 营业执照识别
export const checkBusinessLicense = (data) => {
  return request({
    url: '/shop/login/checkBusinessLicense',
    method: 'POST',
    data,
  })
}
// 实名认证信息验证
export const vaildRealAuth = (data) => {
  return request({
    url: '/shop/login/vaildRealAuth',
    method: 'POST',
    data,
  })
}
// 识别身份证信息
export const distinguish = (data) => {
  return request({
    url: '/shop/login/distinguish',
    method: 'POST',
    data,
  })
}
// 店铺注册
export const redisterShopInfo = (data) => {
  return request({
    url: '/shop/login/redisterShopInfo',
    method: 'POST',
    data,
  })
}
// 发送注册短信验证码
export const sendAuthCode = (data) => {
  return request({
    url: '/shop/sms/sendAuthCode',
    method: 'POST',
    data,
  })
}